#ifndef __STDTCP_H_
#define __STDTCP_H_
#include <dirent.h>
struct TcpServer;
typedef struct TcpServer TcpS;
TcpS *InitTcpServer(const char *ip,short int port);
int TcpServerAccept(TcpS *s);
void TcpServerSend(int clinetsock,void *ptr,size_t size);
void TcpServerRecv(int clinetsock,void *ptr,size_t size);
void CloseTcpServer(TcpS *s);

struct TcpClinet;
typedef struct TcpClinet TcpC;
TcpC *InitTcpClinet(const char *serverip,short int serverport);
void TcpClinetSend(TcpC *c,void *ptr,size_t size);
void TcpClinetRecv(TcpC *c,void *ptr,size_t size);
void CloseTcpClinet(TcpC *c);


#endif